﻿package com.et.ball.module{
	import flash.display.Sprite;
	public class Rect extends Sprite{
		private var _width:Number;
		private var _height:Number;
		private var _color:uint;
		private var _alpha:Number;
		public function Rect(width:Number=200,height:Number=20,color:uint=0xffff00,alpha:Number=0.1){
			this._width=width;
			this._height=height;
			this._color=color;
			this._alpha=alpha;
			draw();
		}
		
		private function draw():void
		{
			graphics.clear();
			graphics.lineStyle(1,0x8F8F8F);
			graphics.beginFill(_color,_alpha);
			graphics.drawRect(0,0,_width,_height);
			graphics.endFill();
		}
	}
}